{extend name="layout/layout" /} {block name="title"}最新资讯—楼氏集团{/block}
{block name="container"}
<!-- Banner -->
<div class="banner">
  <img src="{$banner}" alt="" />
</div>

<!-- NewsList -->
<div class="news-wrap bg-white">
  <div class="container">
    <div class="title-box">
      <h1>NEWS<br />最新资讯</h1>
    </div>
    <ul class="news-list">
      <?php foreach($news as $v): ?>
      <li class="news-item">
        <a href="<?php echo $v['url']; ?>" class="news-post"
          ><img src="<?php echo $v['image']; ?>" alt=""
        /></a>
        <div class="news-content">
          <div class="news-date">
            <span><?php echo date('d', $v['createtime']); ?></span>
            <span><?php echo date('Y.m', $v['createtime']); ?></span>
          </div>
          <a href="<?php echo $v['url']; ?>" class="news-title">
            <h1><?php echo $v['title']; ?></h1>
          </a>
          <a href="<?php echo $v['url']; ?>" class="news-desc">
            <p><?php echo $v['description']; ?></p>
          </a>
          <a href="<?php echo $v['url']; ?>" class="news-btn">阅读详情</a>
        </div>
      </li>
      <?php endForeach; ?>
    </ul>
    <div class="news-pagebar">
      <a href="?page=1" class="arrows arrows-left"></a>
      <ul>
        <?php for($i = $start; $i <= $length; $i++): ?>
        <li class="<?php if($i == $currentPage) { echo 'active'; } ?>">
          <a href="?page=<?php echo $i; ?>"><?php echo $i; ?></a>
        </li>
        <?php endFor; ?>
      </ul>
      <a href="?page={$totalPage}" class="arrows arrows-right"></a>
    </div>
  </div>
</div>

{/block}
